<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "user_ext".
 *
 * @property int $ext_id 主键id
 * @property int $user_id 用户id
 * @property int $limit_prize 抽奖次数
 * @property int $created_at 创建时间
 * @property int $updated_at 修改时间
 */
class UserExt extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_ext';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'created_at', 'updated_at'], 'integer'],
            [['limit_prize'], 'integer', 'max' => 4],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'ext_id' => '主键id',
            'user_id' => '用户id',
            'limit_prize' => '抽奖次数',
            'created_at' => '创建时间',
            'updated_at' => '修改时间',
        ];
    }
}
